package com.snxun.browser_light.bean;

import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * App应用信息
 * Created by Yangjw on 2020/11/19.
 */
public class AppInfoBean implements Parcelable {
    /**
     * 应用名称
     */
    public String appName;

    /**
     * 应用图标（Url）
     */
    public String appIconUrl;

    /**
     * 应用访问的地址
     */
    public String appLoadUrl;
    /**
     * 应用图标（Uri）
     */
    public Uri appIconUri;

    public AppInfoBean(Parcel in) {
        appName = in.readString();
        appIconUrl = in.readString();
        appLoadUrl = in.readString();
    }

    public AppInfoBean() {

    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(appName);
        dest.writeString(appIconUrl);
        dest.writeString(appLoadUrl);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AppInfoBean> CREATOR = new Creator<AppInfoBean>() {
        @Override
        public AppInfoBean createFromParcel(Parcel in) {
            return new AppInfoBean(in);
        }

        @Override
        public AppInfoBean[] newArray(int size) {
            return new AppInfoBean[size];
        }
    };
}
